package com.chenchao.javaopp2;

import com.chenchao.javaoop.Person;

/**
 * @encoding : UTF-8
 * @Time : 2020/11/9 13:30
 * @Author : Chen Chao
 * @File : javaSE.com.chenchao.javaopp2.Teacher.java
 * @Software : IntelliJ IDEA
 * @since : 1.8
 */
public class Teacher extends Person {
    public String name="gg";
    public int age=10;

    @Override
    public int getAge() {
        return age;
    }



    @Override
    public String getName() {
        return name;
    }
    @Override
    public void setName(String name) {
        this.name = name;
    }
    public void teacher(){
        System.out.println(this.getName());//gg
        System.out.println(super.getName());//bsv
        System.out.println(this.getAge());//0
        System.out.println(super.getAge());//0

    }
    public static void main(String[] args) {
        Teacher teacher = new Teacher();
        teacher.teacher();
    }
}
